package com.qingcloud.adminbackend.entity.sysorg;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class SysOrgBO {

    private String Id;

    @ApiModelProperty(value = "组织名称", example = "成都市环境保护局")
    private String name;

    @ApiModelProperty(value = "企业简称", example = "成都环保局")
    private String shortName;

    @ApiModelProperty(value = "父组织", example = "")
    private String parentId;

    @ApiModelProperty(value = "类型1：政府；2：企业;3:机构;4:其他", example = "1")
    private Integer type;

    @ApiModelProperty(value = "1:客户 2:分支机构", example = "1")
    private int category;

    @ApiModelProperty(value = "描述", example = "")
    private String description;

    @ApiModelProperty(value = "1：网格化，2:健康云", example = "0")
    private String businessType;

    @ApiModelProperty(value = "1：网格化，2:健康云", example = "0")
    private String businessTypeDesc;

    @ApiModelProperty(value = "子机构")
    @TableField(exist = false)
    private List<SysOrgBO> childSysOrgs;

    @ApiModelProperty(value = "是否管理 0不是 1是")
    @TableField(exist = false)
    private int manage;

    @ApiModelProperty(value = "能否勾选管理 0不能 1能")
    @TableField(exist = false)
    private int enableManage = 1;

    @ApiModelProperty(value = "是否可读 0不是 1是")
    @TableField(exist = false)
    private int read;

    @ApiModelProperty(value = "分支机构是否管理 0不是 1是")
    @TableField(exist = false)
    private int childManage;

    @ApiModelProperty(value = "是否客户本身 0不是 1是")
    @TableField(exist = false)
    private int oneself;
}
